package com.zoshine.zzg.service;

import com.zoshine.zzg.dao.OrderSupplierDetailDao;
import com.zoshine.zzg.pojo.OrderSupplierDetail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 
 * @author 田沛凌
 * @time 2017年6月23日 下午3:33:53
 */
@Service
@Transactional
public class OrderSupplierDetailService extends BaseService<OrderSupplierDetail> {

    private OrderSupplierDetailDao orderSupplierDetailDao;
    @Autowired
    public void setOrderSupplierDetailDao(OrderSupplierDetailDao orderSupplierDetailDao) {
        this.orderSupplierDetailDao = orderSupplierDetailDao;
    }

    /**
     * 代发货列表显示
     * @param orderSupplierDetail；
     * @return 代发货列表
     */
    public List<OrderSupplierDetail> selectDeliverList(OrderSupplierDetail orderSupplierDetail){
        List<OrderSupplierDetail> orderSupplierDetailList = orderSupplierDetailDao.selectDeliverList(orderSupplierDetail);
       return orderSupplierDetailList;
    }
}
